package org.codeart.driver.service;

import org.codeart.driver.mapper.DriverUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CityDriverUserService {

    @Autowired
    private DriverUserMapper driverUserMapper;
    
    /**
     * 根据城市码查询司机是否可以用
     * @param cityCode  城市码
     * @return
     */
    public boolean ifAvailable(String cityCode) {
        int i = driverUserMapper.selectDriverUserByCityCode(cityCode);
        return i > 0;
    }

}
